<% list = User.find(:all, :order => "created_at DESC", :limit => 2) %>
  <div id="body_container">
    <div id="left_container">
      <div class="latest_profile">
        <h2>Latest Profiles</h2>
        <div class="detail">
          <div class="photo"><% if list[0].photo.file? %><%= image_tag list[0].photo.url, :width => 66, :height => 66 %>
		  <%else %> <%= image_tag "d.png",:width => 66, :height => 66 %> <% end %>
		  </div>
          <div class="containt">
		  
            <p>Name: <span><%= list[0].username %></span><br />
              Age: <span><% time = Time.new %>
				<%= ( time.year - list[0].age)%> </span><br />
              Location: <span><%= list[0].adress %></span><br />
             </br>
			 <% str = "/profile/"+ list[0].id.to_s() %>
            <span class="know_more"><%= link_to 'Know more',"/profile/"+list[0].id.to_s() %></span></div>
        </div>
        <div class="detail last">
          <div class="photo"><% if list[1].photo.file? %><%= image_tag list[1].photo.url, :width => 66, :height => 66 %>
		  <%else %> <%= image_tag "d.png",:width => 66, :height => 66 %> <% end %>
		  </div>
          <div class="containt">
            <p>Name: <span><%= list[1].username %></span><br />
              Age: <span><% time = Time.new %>
				<%= ( time.year - list[1].age)%> </span><br />
              Location: <span><%= list[1].adress %></span><br />
               </br>
            <span class="know_more"><%= link_to 'Know more',"/profile/"+list[1].id.to_s() %> </span></div>
        </div>
        <div class="find_more">
          <p><a href="/meetingroom">Find more profiles</a></p>
        </div>
      </div>
    </div>
    <div id="right_container">
      <div class="top_containt">
        <h2>Welcome to Go-Betweeners</h2>
        <p>With Go-Betweeners, you have found a way to finally meet interesting people and create relationships. Eventually, with our matching, you will be able to keep some love in touch!</p>
      </div>
      <div class="bottom_containt">
        <h2>Don't Stay Alone!</h2>
        <ul>
          <li>Sign up to have access to all features</li>
          <li class="b">Edit your profile</li>
          <li class="c">Find love!</li>
        </ul>
      </div>
    </div>
  </div>
  <div id="footer_menu">
    <ul style="color:#FFF;">
      Copyright (c) go-betweeners.com. All rights reserved. Design by Stylish <a href="http://www.stylishtemplate.com" style="color:#FFF; text-decoration:underline;">Website Templates</a>.
    </ul>
  </div>
</div>
